#ifndef CCOMPILERDETECTION_H
#define CCOMPILERDETECTION_H

#ifdef WIN32
#define def_DECL_EXPORT __declspec(dllexport)
#define def_DECL_IMPORT __declspec(dllimport)
#elif defined(__linux__) || defined(__unix__)
#define def_DECL_EXPORT __attribute__((visibility("default")))
#define def_DECL_IMPORT __attribute__((visibility("default")))
#else
#endif

#if defined(PLUGINSSHARED_LIBRARY) || defined(LIBRARYSHARED_LIBRARY)
#  define PLUGINSSHARED_EXPORT def_DECL_EXPORT
#else
#  define PLUGINSSHARED_EXPORT def_DECL_IMPORT
#endif

#endif //CCOMPILERDETECTION_H

